Voorbeeld van de instructie Stop

Dit voorbeeld maakt gebruik van de instructie Stop om de uitvoering voor elke herhaling via de For...Next-lus uit te stellen.

Dim I
For I = 1 To 10    ' Start For...Next loop.
    Debug.Print I    ' Print I to the Immediate window.
    Stop    ' Stop during each iteration.
Next I